package top.forgirl.common.result;

public enum ResultType {
    SUCCESS(2000, "SUCCESS"),
    FAILED(4001, "FAILED"),
    PARAM_LACK(4002,"PLEASE CHECK PARAM"),
    VALIDATE(4003,"PLEASE CHECK PARAM"),
    TOKEN_ERROR(4004,"PLEASE CHECK TOKEN , LIKE EXPIRES OR ILLEGAL"),
    INTERNAL_ERROR(5000,"INTERNAL ERROR");

    ResultType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
